package com.data;

public class IdManager {
	
	// Id prefixes used to identify between diferent design components.
	public static final byte TEMP_PREFIX = 0x00; // template prefix
	public static final byte THEM_PREFIX = 0x01; // theme prefix...
	public static final byte SCRE_PREFIX = 0x02;
	public static final byte MENU_PREFIX = 0x03;
	public static final byte ENTR_PREFIX = 0x04;
	public static final byte BANN_PREFIX = 0x05;
	public static final byte BUTT_PREFIX = 0x06;
	public static final byte IMAG_PREFIX = 0x07;
	public static final byte TEXT_PREFIX = 0x08;
	
	public static final String[] COMPONENTS_TYPES = {
					"Template", "Theme", "Screen",
					"Menu", "Entry","Banner",
					"Button","Image","Text"};
	
	/**
	 * Generates an id checking that it does not already exist.
	 * */
	public static short getNewId (Object c) {
		return 1;
	}
	
	/**
	 * Receives an id and returns true if that id already exists. False if not.
	 * */
	public static boolean existId(short id) {
		return false;
	}
	
	/**
	 * Receives an id of a design component and it determines the name of the class that id belongs to.
	 * */
	public static String resolveId (short id) {
		return "";
	} 
	
	/**
	 * Receives an id and it determines the prefix.
	 * *//*
	public static byte resolveId (short id) {
		return "";
	}*/
	
	
	
}
